package com.lmk.tl;
    /**
         *小狗 子类
         * @author 青笙
         * @email  1460961774@qq.com
         */

public class Dog extends Animal {
    private  String strain;
    int age;

        public Dog() {
        }

        public String getStrain() {
            return strain;
        }

        public void setStrain(String strain) {
            this.strain = strain;
        }
        public boolean catchThief(String thief){
            System.out.println("抓到了"+thief);
            return true;
        }
        public void show(){
            int age=4;
            System.out.println("年龄1："+this.age);
            System.out.println("年龄2："+super.getAge());
            System.out.println("年龄3："+age);
        }
    }
